package com.app.lcl.entities;
/**@author lcl
 * 持久化类的要求
 * 1、提供一个无参的构造器
 * 2、提供一个标识属性，主键
 * 3、每个属性的setter和getter方法
 * 4、使用非final类
 * 5、重写equals()和hashCode()方法
 */
public class News {
	@Override
	public String toString() {
		return "News [id=" + id + ", title=" + title + ", content=" + content
				+ "]";
	}
	private Integer id;
	private String title;
	private String content;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public News() {
		super();
		// TODO Auto-generated constructor stub
	}
	public News(Integer id, String title) {
		super();
		this.id = id;
		this.title = title;
	}
	
	
}
